package shejishiyan;
//学生类
public class Student {
 private String studentId;
 private String name;
 private String className;
 
 public Student(String studentId, String name, String className) {
     this.studentId = studentId;
     this.name = name;
     this.className = className;
 }
 // Getter方法
 public String getStudentId() { return studentId; }
 public String getName() { return name; }
 public String getClassName() { return className; }
 public String toString() {
     return "学号:" + studentId + ", 姓名:" + name + ", 班级:" + className;
 }
}